package com.iretailer.report.influxdb.model;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.ZonedDateTime;

/**
 * @Auther: xjw
 * @Date: 2019/9/25 0025 13:44
 * @Description:
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class EasAlarm {

    private String zoneid;
    private ZonedDateTime time;
    private int alarmTimes;

    private String group;

    public String getGroup() {
        return String.format("%s_%s", zoneid, time);
    }
}
